(function($){ 'use strict'; if(typeof wpcf7==='undefined'||wpcf7===null){ return; } wpcf7=$.extend({ cached: 0, inputs: [] }, wpcf7); $(function(){ wpcf7.supportHtml5=(function(){ var features={}; var input=document.createElement('input'); features.placeholder='placeholder' in input; var inputTypes=[ 'email', 'url', 'tel', 'number', 'range', 'date' ]; $.each(inputTypes, function(index, value){ input.setAttribute('type', value); features[ value ]=input.type!=='text'; }); return features; })(); $('div.wpcf7 > form').each(function(){ var $form=$(this); wpcf7.initForm($form); if(wpcf7.cached){ wpcf7.refill($form); }}); }); wpcf7.getId=function(form){ return parseInt($('input[name="_wpcf7"]', form).val(), 10); }; wpcf7.initForm=function(form){ var $form=$(form); $form.submit(function(event){ if(! wpcf7.supportHtml5.placeholder){ $('[placeholder].placeheld', $form).each(function(i, n){ $(n).val('').removeClass('placeheld'); }); } if(typeof window.FormData==='function'){ wpcf7.submit($form); event.preventDefault(); }}); $('.wpcf7-submit', $form).after(''); wpcf7.toggleSubmit($form); $form.on('click', '.wpcf7-acceptance', function(){ wpcf7.toggleSubmit($form); }); $('.wpcf7-exclusive-checkbox', $form).on('click', 'input:checkbox', function(){ var name=$(this).attr('name'); $form.find('input:checkbox[name="' + name + '"]').not(this).prop('checked', false); }); $('.wpcf7-list-item.has-free-text', $form).each(function(){ var $freetext=$(':input.wpcf7-free-text', this); var $wrap=$(this).closest('.wpcf7-form-control'); if($(':checkbox, :radio', this).is(':checked')){ $freetext.prop('disabled', false); }else{ $freetext.prop('disabled', true); } $wrap.on('change', ':checkbox, :radio', function(){ var $cb=$('.has-free-text', $wrap).find(':checkbox, :radio'); if($cb.is(':checked')){ $freetext.prop('disabled', false).focus(); }else{ $freetext.prop('disabled', true); }}); }); if(! wpcf7.supportHtml5.placeholder){ $('[placeholder]', $form).each(function(){ $(this).val($(this).attr('placeholder')); $(this).addClass('placeheld'); $(this).focus(function(){ if($(this).hasClass('placeheld')){ $(this).val('').removeClass('placeheld'); }}); $(this).blur(function(){ if(''===$(this).val()){ $(this).val($(this).attr('placeholder')); $(this).addClass('placeheld'); }}); }); } if(wpcf7.jqueryUi&&! wpcf7.supportHtml5.date){ $form.find('input.wpcf7-date[type="date"]').each(function(){ $(this).datepicker({ dateFormat: 'yy-mm-dd', minDate: new Date($(this).attr('min')), maxDate: new Date($(this).attr('max')) }); }); } if(wpcf7.jqueryUi&&! wpcf7.supportHtml5.number){ $form.find('input.wpcf7-number[type="number"]').each(function(){ $(this).spinner({ min: $(this).attr('min'), max: $(this).attr('max'), step: $(this).attr('step') }); }); } $('.wpcf7-character-count', $form).each(function(){ var $count=$(this); var name=$count.attr('data-target-name'); var down=$count.hasClass('down'); var starting=parseInt($count.attr('data-starting-value'), 10); var maximum=parseInt($count.attr('data-maximum-value'), 10); var minimum=parseInt($count.attr('data-minimum-value'), 10); var updateCount=function(target){ var $target=$(target); var length=$target.val().length; var count=down ? starting - length:length; $count.attr('data-current-value', count); $count.text(count); if(maximum&&maximum < length){ $count.addClass('too-long'); }else{ $count.removeClass('too-long'); } if(minimum&&length < minimum){ $count.addClass('too-short'); }else{ $count.removeClass('too-short'); }}; $(':input[name="' + name + '"]', $form).each(function(){ updateCount(this); $(this).keyup(function(){ updateCount(this); }); }); }); $form.on('change', '.wpcf7-validates-as-url', function(){ var val=$.trim($(this).val()); if(val && ! val.match(/^[a-z][a-z0-9.+-]*:/i) && -1!==val.indexOf('.')){ val=val.replace(/^\/+/, ''); val='http://' + val; } $(this).val(val); }); }; wpcf7.submit=function(form){ if(typeof window.FormData!=='function'){ return; } var $form=$(form); $('.ajax-loader', $form).addClass('is-active'); wpcf7.clearResponse($form); var formData=new FormData($form.get(0)); var detail={ id: $form.closest('div.wpcf7').attr('id'), status: 'init', inputs: [], formData: formData }; $.each($form.serializeArray(), function(i, field){ if('_wpcf7'==field.name){ detail.contactFormId=field.value; }else if('_wpcf7_version'==field.name){ detail.pluginVersion=field.value; }else if('_wpcf7_locale'==field.name){ detail.contactFormLocale=field.value; }else if('_wpcf7_unit_tag'==field.name){ detail.unitTag=field.value; }else if('_wpcf7_container_post'==field.name){ detail.containerPostId=field.value; }else if(field.name.match(/^_wpcf7_\w+_free_text_/)){ var owner=field.name.replace(/^_wpcf7_\w+_free_text_/, ''); detail.inputs.push({ name: owner + '-free-text', value: field.value }); }else if(field.name.match(/^_/)){ }else{ detail.inputs.push(field); }}); wpcf7.triggerEvent($form.closest('div.wpcf7'), 'beforesubmit', detail); var ajaxSuccess=function(data, status, xhr, $form){ detail.id=$(data.into).attr('id'); detail.status=data.status; detail.apiResponse=data; var $message=$('.wpcf7-response-output', $form); switch(data.status){ case 'validation_failed': $.each(data.invalidFields, function(i, n){ $(n.into, $form).each(function(){ wpcf7.notValidTip(this, n.message); $('.wpcf7-form-control', this).addClass('wpcf7-not-valid'); $('[aria-invalid]', this).attr('aria-invalid', 'true'); }); }); $message.addClass('wpcf7-validation-errors'); $form.addClass('invalid'); wpcf7.triggerEvent(data.into, 'invalid', detail); break; case 'acceptance_missing': $message.addClass('wpcf7-acceptance-missing'); $form.addClass('unaccepted'); wpcf7.triggerEvent(data.into, 'unaccepted', detail); break; case 'spam': $message.addClass('wpcf7-spam-blocked'); $form.addClass('spam'); wpcf7.triggerEvent(data.into, 'spam', detail); break; case 'aborted': $message.addClass('wpcf7-aborted'); $form.addClass('aborted'); wpcf7.triggerEvent(data.into, 'aborted', detail); break; case 'mail_sent': $message.addClass('wpcf7-mail-sent-ok'); $form.addClass('sent'); wpcf7.triggerEvent(data.into, 'mailsent', detail); break; case 'mail_failed': $message.addClass('wpcf7-mail-sent-ng'); $form.addClass('failed'); wpcf7.triggerEvent(data.into, 'mailfailed', detail); break; default: var customStatusClass='custom-' + data.status.replace(/[^0-9a-z]+/i, '-'); $message.addClass('wpcf7-' + customStatusClass); $form.addClass(customStatusClass); } wpcf7.refill($form, data); wpcf7.triggerEvent(data.into, 'submit', detail); if('mail_sent'==data.status){ $form.each(function(){ this.reset(); }); wpcf7.toggleSubmit($form); } if(! wpcf7.supportHtml5.placeholder){ $form.find('[placeholder].placeheld').each(function(i, n){ $(n).val($(n).attr('placeholder')); }); } $message.html('').append(data.message).slideDown('fast'); $message.attr('role', 'alert'); $('.screen-reader-response', $form.closest('.wpcf7')).each(function(){ var $response=$(this); $response.html('').attr('role', '').append(data.message); if(data.invalidFields){ var $invalids=$(''); $.each(data.invalidFields, function(i, n){ if(n.idref){ var $li=$('
  • ').append($('').attr('href', '#' + n.idref).append(n.message)); }else{ var $li=$('
  • ').append(n.message); } $invalids.append($li); }); $response.append($invalids); } $response.attr('role', 'alert').focus(); }); }; $.ajax({ type: 'POST', url: wpcf7.apiSettings.getRoute('/contact-forms/' + wpcf7.getId($form) + '/feedback'), data: formData, dataType: 'json', processData: false, contentType: false }).done(function(data, status, xhr){ ajaxSuccess(data, status, xhr, $form); $('.ajax-loader', $form).removeClass('is-active'); }).fail(function(xhr, status, error){ var $e=$('
    ').text(error.message); $form.after($e); }); }; wpcf7.triggerEvent=function(target, name, detail){ var $target=$(target); var event=new CustomEvent('wpcf7' + name, { bubbles: true, detail: detail }); $target.get(0).dispatchEvent(event); $target.trigger('wpcf7:' + name, detail); $target.trigger(name + '.wpcf7', detail); }; wpcf7.toggleSubmit=function(form, state){ var $form=$(form); var $submit=$('input:submit', $form); if(typeof state!=='undefined'){ $submit.prop('disabled', ! state); return; } if($form.hasClass('wpcf7-acceptance-as-validation')){ return; } $submit.prop('disabled', false); $('.wpcf7-acceptance', $form).each(function(){ var $span=$(this); var $input=$('input:checkbox', $span); if(! $span.hasClass('optional')){ if($span.hasClass('invert')&&$input.is(':checked') || ! $span.hasClass('invert')&&! $input.is(':checked')){ $submit.prop('disabled', true); return false; }} }); }; wpcf7.notValidTip=function(target, message){ var $target=$(target); $('.wpcf7-not-valid-tip', $target).remove(); $('') .text(message).appendTo($target); if($target.is('.use-floating-validation-tip *')){ var fadeOut=function(target){ $(target).not(':hidden').animate({ opacity: 0 }, 'fast', function(){ $(this).css({ 'z-index': -100 }); }); }; $target.on('mouseover', '.wpcf7-not-valid-tip', function(){ fadeOut(this); }); $target.on('focus', ':input', function(){ fadeOut($('.wpcf7-not-valid-tip', $target)); }); }}; wpcf7.refill=function(form, data){ var $form=$(form); var refillCaptcha=function($form, items){ $.each(items, function(i, n){ $form.find(':input[name="' + i + '"]').val(''); $form.find('img.wpcf7-captcha-' + i).attr('src', n); var match=/([0-9]+)\.(png|gif|jpeg)$/.exec(n); $form.find('input:hidden[name="_wpcf7_captcha_challenge_' + i + '"]').attr('value', match[ 1 ]); }); }; var refillQuiz=function($form, items){ $.each(items, function(i, n){ $form.find(':input[name="' + i + '"]').val(''); $form.find(':input[name="' + i + '"]').siblings('span.wpcf7-quiz-label').text(n[ 0 ]); $form.find('input:hidden[name="_wpcf7_quiz_answer_' + i + '"]').attr('value', n[ 1 ]); }); }; if(typeof data==='undefined'){ $.ajax({ type: 'GET', url: wpcf7.apiSettings.getRoute('/contact-forms/' + wpcf7.getId($form) + '/refill'), beforeSend: function(xhr){ var nonce=$form.find(':input[name="_wpnonce"]').val(); if(nonce){ xhr.setRequestHeader('X-WP-Nonce', nonce); }}, dataType: 'json' }).done(function(data, status, xhr){ if(data.captcha){ refillCaptcha($form, data.captcha); } if(data.quiz){ refillQuiz($form, data.quiz); }}); }else{ if(data.captcha){ refillCaptcha($form, data.captcha); } if(data.quiz){ refillQuiz($form, data.quiz); }} }; wpcf7.clearResponse=function(form){ var $form=$(form); $form.removeClass('invalid spam sent failed'); $form.siblings('.screen-reader-response').html('').attr('role', ''); $('.wpcf7-not-valid-tip', $form).remove(); $('[aria-invalid]', $form).attr('aria-invalid', 'false'); $('.wpcf7-form-control', $form).removeClass('wpcf7-not-valid'); $('.wpcf7-response-output', $form) .hide().empty().removeAttr('role') .removeClass('wpcf7-mail-sent-ok wpcf7-mail-sent-ng wpcf7-validation-errors wpcf7-spam-blocked'); }; wpcf7.apiSettings.getRoute=function(path){ var url=wpcf7.apiSettings.root; url=url.replace(wpcf7.apiSettings.namespace, wpcf7.apiSettings.namespace + path); return url; };})(jQuery); (function (){ if(typeof window.CustomEvent==="function") return false; function CustomEvent(event, params){ params=params||{ bubbles: false, cancelable: false, detail: undefined }; var evt=document.createEvent('CustomEvent'); evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail); return evt; } CustomEvent.prototype=window.Event.prototype; window.CustomEvent=CustomEvent; })(); jQuery(document).ready(function($){ $('body').on('click','.newave-like', function(){ var $likeLink=$(this); var $id=$(this).attr('id'); var $that=$(this); if($likeLink.hasClass('liked')) return false; if($(this).hasClass('inactive')) return false; var $dataToPass={ action: 'newave-like', likes_id: $id } $.post(newaveLike.ajaxurl, $dataToPass, function(data){ $likeLink.find('span').html(data); $likeLink.addClass('loved').attr('title','You already like this!'); $likeLink.find('span').css({'opacity': 1,'width':'auto'}); }); $(this).addClass('inactive'); return false; }); }); (function($){ var defaults={ topSpacing: 0, bottomSpacing: 0, className: 'is-sticky', wrapperClassName: 'sticky-wrapper' }, $window=$(window), $document=$(document), sticked=[], windowHeight=$window.height(), scroller=function(){ var scrollTop=$window.scrollTop(), documentHeight=$document.height(), dwh=documentHeight - windowHeight, extra=(scrollTop > dwh) ? dwh - scrollTop:0; for (var i=0; i < sticked.length; i++){ var s=sticked[i], elementTop=s.stickyWrapper.offset().top, etse=elementTop - s.topSpacing - extra; if(scrollTop <=etse){ if(s.currentTop!==null){ s.stickyElement .css('position', '') .css('top', '') .removeClass(s.className); s.stickyElement.parent().removeClass(s.className); s.currentTop=null; }}else{ var newTop=documentHeight - s.stickyElement.outerHeight() - s.topSpacing - s.bottomSpacing - scrollTop - extra; if(newTop < 0){ newTop=newTop + s.topSpacing; }else{ newTop=s.topSpacing; } if(s.currentTop!=newTop){ s.stickyElement .css('position', 'fixed') .css('top', newTop) .addClass(s.className); s.stickyElement.parent().addClass(s.className); s.currentTop=newTop; }} }}, resizer=function(){ windowHeight=$window.height(); }, methods={ init: function(options){ var o=$.extend(defaults, options); return this.each(function(){ var stickyElement=$(this); stickyId=stickyElement.attr('id'); wrapper=$('
    ') .attr('id', stickyId + '-sticky-wrapper') .addClass(o.wrapperClassName); stickyElement.wrapAll(wrapper); var stickyWrapper=stickyElement.parent(); stickyWrapper.css('height', stickyElement.outerHeight()); sticked.push({ topSpacing: o.topSpacing, bottomSpacing: o.bottomSpacing, stickyElement: stickyElement, currentTop: null, stickyWrapper: stickyWrapper, className: o.className }); }); }, update: scroller }; if(window.addEventListener){ window.addEventListener('scroll', scroller, false); window.addEventListener('resize', resizer, false); }else if(window.attachEvent){ window.attachEvent('onscroll', scroller); window.attachEvent('onresize', resizer); } $.fn.sticky=function(method){ if(methods[method]){ return methods[method].apply(this, Array.prototype.slice.call(arguments, 1)); }else if(typeof method==='object'||!method){ return methods.init.apply(this, arguments); }else{ $.error('Method ' + method + ' does not exist on jQuery.sticky'); }}; $(function(){ setTimeout(scroller, 0); }); })(jQuery); jQuery.easing['jswing']=jQuery.easing['swing']; jQuery.extend(jQuery.easing, { def: 'easeOutQuad', swing: function (x, t, b, c, d){ return jQuery.easing[jQuery.easing.def](x, t, b, c, d); }, easeInQuad: function (x, t, b, c, d){ return c*(t/=d)*t + b; }, easeOutQuad: function (x, t, b, c, d){ return -c *(t/=d)*(t-2) + b; }, easeInOutQuad: function (x, t, b, c, d){ if((t/=d/2) < 1) return c/2*t*t + b; return -c/2 * ((--t)*(t-2) - 1) + b; }, easeInCubic: function (x, t, b, c, d){ return c*(t/=d)*t*t + b; }, easeOutCubic: function (x, t, b, c, d){ return c*((t=t/d-1)*t*t + 1) + b; }, easeInOutCubic: function (x, t, b, c, d){ if((t/=d/2) < 1) return c/2*t*t*t + b; return c/2*((t-=2)*t*t + 2) + b; }, easeInQuart: function (x, t, b, c, d){ return c*(t/=d)*t*t*t + b; }, easeOutQuart: function (x, t, b, c, d){ return -c * ((t=t/d-1)*t*t*t - 1) + b; }, easeInOutQuart: function (x, t, b, c, d){ if((t/=d/2) < 1) return c/2*t*t*t*t + b; return -c/2 * ((t-=2)*t*t*t - 2) + b; }, easeInQuint: function (x, t, b, c, d){ return c*(t/=d)*t*t*t*t + b; }, easeOutQuint: function (x, t, b, c, d){ return c*((t=t/d-1)*t*t*t*t + 1) + b; }, easeInOutQuint: function (x, t, b, c, d){ if((t/=d/2) < 1) return c/2*t*t*t*t*t + b; return c/2*((t-=2)*t*t*t*t + 2) + b; }, easeInSine: function (x, t, b, c, d){ return -c * Math.cos(t/d * (Math.PI/2)) + c + b; }, easeOutSine: function (x, t, b, c, d){ return c * Math.sin(t/d * (Math.PI/2)) + b; }, easeInOutSine: function (x, t, b, c, d){ return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b; }, easeInExpo: function (x, t, b, c, d){ return (t==0) ? b:c * Math.pow(2, 10 * (t/d - 1)) + b; }, easeOutExpo: function (x, t, b, c, d){ return (t==d) ? b+c:c * (-Math.pow(2, -10 * t/d) + 1) + b; }, easeInOutExpo: function (x, t, b, c, d){ if(t==0) return b; if(t==d) return b+c; if((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b; return c/2 * (-Math.pow(2, -10 * --t) + 2) + b; }, easeInCirc: function (x, t, b, c, d){ return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b; }, easeOutCirc: function (x, t, b, c, d){ return c * Math.sqrt(1 - (t=t/d-1)*t) + b; }, easeInOutCirc: function (x, t, b, c, d){ if((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b; return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b; }, easeInElastic: function (x, t, b, c, d){ var s=1.70158;var p=0;var a=c; if(t==0) return b; if((t/=d)==1) return b+c; if(!p) p=d*.3; if(a < Math.abs(c)){ a=c; var s=p/4; } else var s=p/(2*Math.PI) * Math.asin (c/a); return -(a*Math.pow(2,10*(t-=1)) * Math.sin((t*d-s)*(2*Math.PI)/p)) + b; }, easeOutElastic: function (x, t, b, c, d){ var s=1.70158;var p=0;var a=c; if(t==0) return b; if((t/=d)==1) return b+c; if(!p) p=d*.3; if(a < Math.abs(c)){ a=c; var s=p/4; } else var s=p/(2*Math.PI) * Math.asin (c/a); return a*Math.pow(2,-10*t) * Math.sin((t*d-s)*(2*Math.PI)/p) + c + b; }, easeInOutElastic: function (x, t, b, c, d){ var s=1.70158;var p=0;var a=c; if(t==0) return b; if((t/=d/2)==2) return b+c; if(!p) p=d*(.3*1.5); if(a < Math.abs(c)){ a=c; var s=p/4; } else var s=p/(2*Math.PI) * Math.asin (c/a); if(t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin((t*d-s)*(2*Math.PI)/p)) + b; return a*Math.pow(2,-10*(t-=1)) * Math.sin((t*d-s)*(2*Math.PI)/p)*.5 + c + b; }, easeInBack: function (x, t, b, c, d, s){ if(s==undefined) s=1.70158; return c*(t/=d)*t*((s+1)*t - s) + b; }, easeOutBack: function (x, t, b, c, d, s){ if(s==undefined) s=1.70158; return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b; }, easeInOutBack: function (x, t, b, c, d, s){ if(s==undefined) s=1.70158; if((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; }, easeInBounce: function (x, t, b, c, d){ return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b; }, easeOutBounce: function (x, t, b, c, d){ if((t/=d) < (1/2.75)){ return c*(7.5625*t*t) + b; }else if(t < (2/2.75)){ return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b; }else if(t < (2.5/2.75)){ return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b; }else{ return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b; }}, easeInOutBounce: function (x, t, b, c, d){ if(t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b; return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b; }}); ! function (e){ e(function (){ "use strict"; e.support.transition=function (){ var e=function (){ var e=document.createElement("bootstrap"), t={ WebkitTransition: "webkitTransitionEnd", MozTransition: "transitionend", OTransition: "oTransitionEnd otransitionend", transition: "transitionend" }, n; for (n in t) if(e.style[n]!==undefined) return t[n] }(); return e&&{ end: e }}() }) }(window.jQuery), ! function (e){ "use strict"; var t='[data-dismiss="alert"]', n=function (n){ e(n).on("click", t, this.close) }; n.prototype.close=function (t){ function s(){ i.trigger("closed").remove() } var n=e(this), r=n.attr("data-target"), i; r||(r=n.attr("href"), r=r&&r.replace(/.*(?=#[^\s]*$)/, "")), i=e(r), t&&t.preventDefault(), i.length||(i=n.hasClass("alert") ? n:n.parent()), i.trigger(t=e.Event("close")); if(t.isDefaultPrevented()) return; i.removeClass("in"), e.support.transition&&i.hasClass("fade") ? i.on(e.support.transition.end, s):s() }, e.fn.alert=function (t){ return this.each(function (){ var r=e(this), i=r.data("alert"); i||r.data("alert", i=new n(this)), typeof t=="string"&&i[t].call(r) }) }, e.fn.alert.Constructor=n, e(function (){ e("body").on("click.alert.data-api", t, n.prototype.close) }) }(window.jQuery), ! function (e){ "use strict"; var t=function (t, n){ this.$element=e(t), this.options=e.extend({}, e.fn.button.defaults, n) }; t.prototype.setState=function (e){ var t="disabled", n=this.$element, r=n.data(), i=n.is("input") ? "val":"html"; e +="Text", r.resetText||n.data("resetText", n[i]()), n[i](r[e]||this.options[e]), setTimeout(function (){ e=="loadingText" ? n.addClass(t).attr(t, t):n.removeClass(t).removeAttr(t) }, 0) }, t.prototype.toggle=function (){ var e=this.$element.closest('[data-toggle="buttons-radio"]'); e&&e.find(".active").removeClass("active"), this.$element.toggleClass("active") }, e.fn.button=function (n){ return this.each(function (){ var r=e(this), i=r.data("button"), s=typeof n=="object"&&n; i||r.data("button", i=new t(this, s)), n=="toggle" ? i.toggle():n&&i.setState(n) }) }, e.fn.button.defaults={ loadingText: "loading..." }, e.fn.button.Constructor=t, e(function (){ e("body").on("click.button.data-api", "[data-toggle^=button]", function (t){ var n=e(t.target); n.hasClass("btn")||(n=n.closest(".btn")), n.button("toggle") }) }) }(window.jQuery), ! function (e){ "use strict"; var t=function (t, n){ this.$element=e(t), this.options=n, this.options.slide&&this.slide(this.options.slide), this.options.pause=="hover"&&this.$element.on("mouseenter", e.proxy(this.pause, this)).on("mouseleave", e.proxy(this.cycle, this)) }; t.prototype={ cycle: function (t){ return t||(this.paused = !1), this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next, this), this.options.interval)), this }, to: function (t){ var n=this.$element.find(".item.active"), r=n.parent().children(), i=r.index(n), s=this; if(t > r.length - 1||t < 0) return; return this.sliding ? this.$element.one("slid", function (){ s.to(t) }):i==t ? this.pause().cycle():this.slide(t > i ? "next":"prev", e(r[t])) }, pause: function (t){ return t||(this.paused = !0), this.$element.find(".next, .prev").length&&e.support.transition.end&&(this.$element.trigger(e.support.transition.end), this.cycle()), clearInterval(this.interval), this.interval=null, this }, next: function (){ if(this.sliding) return; return this.slide("next") }, prev: function (){ if(this.sliding) return; return this.slide("prev") }, slide: function (t, n){ var r=this.$element.find(".item.active"), i=n||r[t](), s=this.interval, o=t=="next" ? "left":"right", u=t=="next" ? "first":"last", a=this, f=e.Event("slide", { relatedTarget: i[0] }); this.sliding = !0, s&&this.pause(), i=i.length ? i:this.$element.find(".item")[u](); if(i.hasClass("active")) return; if(e.support.transition&&this.$element.hasClass("slide")){ this.$element.trigger(f); if(f.isDefaultPrevented()) return; i.addClass(t), i[0].offsetWidth, r.addClass(o), i.addClass(o), this.$element.one(e.support.transition.end, function (){ i.removeClass([t, o].join(" ")).addClass("active"), r.removeClass(["active", o].join(" ")), a.sliding = !1, setTimeout(function (){ a.$element.trigger("slid") }, 0) }) }else{ this.$element.trigger(f); if(f.isDefaultPrevented()) return; r.removeClass("active"), i.addClass("active"), this.sliding = !1, this.$element.trigger("slid") } return s&&this.cycle(), this }}, e.fn.carousel=function (n){ return this.each(function (){ var r=e(this), i=r.data("carousel"), s=e.extend({}, e.fn.carousel.defaults, typeof n=="object"&&n), o=typeof n=="string" ? n:s.slide; i||r.data("carousel", i=new t(this, s)), typeof n=="number" ? i.to(n):o ? i[o]():s.interval&&i.cycle() }) }, e.fn.carousel.defaults={ interval: 5e3, pause: "hover" }, e.fn.carousel.Constructor=t, e(function (){ e("body").on("click.carousel.data-api", "[data-slide]", function (t){ var n=e(this), r, i=e(n.attr("data-target")||(r=n.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/, "")), s = !i.data("modal")&&e.extend({}, i.data(), n.data()); i.carousel(s), t.preventDefault() }) }) }(window.jQuery), ! function (e){ "use strict"; var t=function (t, n){ this.$element=e(t), this.options=e.extend({}, e.fn.collapse.defaults, n), this.options.parent&&(this.$parent=e(this.options.parent)), this.options.toggle&&this.toggle() }; t.prototype={ constructor: t, dimension: function (){ var e=this.$element.hasClass("width"); return e ? "width":"height" }, show: function (){ var t, n, r, i; if(this.transitioning) return; t=this.dimension(), n=e.camelCase(["scroll", t].join("-")), r=this.$parent&&this.$parent.find("> .accordion-group > .in"); if(r&&r.length){ i=r.data("collapse"); if(i&&i.transitioning) return; r.collapse("hide"), i||r.data("collapse", null) } this.$element[t](0), this.transition("addClass", e.Event("show"), "shown"), e.support.transition&&this.$element[t](this.$element[0][n]) }, hide: function (){ var t; if(this.transitioning) return; t=this.dimension(), this.reset(this.$element[t]()), this.transition("removeClass", e.Event("hide"), "hidden"), this.$element[t](0) }, reset: function (e){ var t=this.dimension(); return this.$element.removeClass("collapse")[t](e||"auto")[0].offsetWidth, this.$element[e!==null ? "addClass":"removeClass"]("collapse"), this }, transition: function (t, n, r){ var i=this, s=function (){ n.type=="show"&&i.reset(), i.transitioning=0, i.$element.trigger(r) }; this.$element.trigger(n); if(n.isDefaultPrevented()) return; this.transitioning=1, this.$element[t]("in"), e.support.transition&&this.$element.hasClass("collapse") ? this.$element.one(e.support.transition.end, s):s() }, toggle: function (){ this[this.$element.hasClass("in") ? "hide":"show"]() }}, e.fn.collapse=function (n){ return this.each(function (){ var r=e(this), i=r.data("collapse"), s=typeof n=="object"&&n; i||r.data("collapse", i=new t(this, s)), typeof n=="string"&&i[n]() }) }, e.fn.collapse.defaults={ toggle: !0 }, e.fn.collapse.Constructor=t, e(function (){ e("body").on("click.collapse.data-api", "[data-toggle=collapse]", function (t){ var n=e(this), r, i=n.attr("data-target")||t.preventDefault()||(r=n.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/, ""), s=e(i).data("collapse") ? "toggle":n.data(); n[e(i).hasClass("in") ? "addClass":"removeClass"]("collapsed"), e(i).collapse(s) }) }) }(window.jQuery), ! function (e){ "use strict"; function r(){ i(e(t)).removeClass("open") } function i(t){ var n=t.attr("data-target"), r; return n||(n=t.attr("href"), n=n&&/#/.test(n)&&n.replace(/.*(?=#[^\s]*$)/, "")), r=e(n), r.length||(r=t.parent()), r } var t="[data-toggle=dropdown]", n=function (t){ var n=e(t).on("click.dropdown.data-api", this.toggle); e("html").on("click.dropdown.data-api", function (){ n.parent().removeClass("open") }) }; n.prototype={ constructor: n, toggle: function (t){ var n=e(this), s, o; if(n.is(".disabled, :disabled")) return; return s=i(n), o=s.hasClass("open"), r(), o||(s.toggleClass("open"), n.focus()), !1 }, keydown: function (t){ var n, r, s, o, u, a; if(!/(38|40|27)/.test(t.keyCode)) return; n=e(this), t.preventDefault(), t.stopPropagation(); if(n.is(".disabled, :disabled")) return; o=i(n), u=o.hasClass("open"); if(!u||u&&t.keyCode==27) return n.click(); r=e("[role=menu] li:not(.divider) a", o); if(!r.length) return; a=r.index(r.filter(":focus")), t.keyCode==38&&a > 0&&a--, t.keyCode==40&&a < r.length - 1&&a++, ~a||(a=0), r.eq(a).focus() }}, e.fn.dropdown=function (t){ return this.each(function (){ var r=e(this), i=r.data("dropdown"); i||r.data("dropdown", i=new n(this)), typeof t=="string"&&i[t].call(r) }) }, e.fn.dropdown.Constructor=n, e(function (){ e("html").on("click.dropdown.data-api touchstart.dropdown.data-api", r), e("body").on("click.dropdown touchstart.dropdown.data-api", ".dropdown form", function (e){ e.stopPropagation() }).on("click.dropdown.data-api touchstart.dropdown.data-api", t, n.prototype.toggle).on("keydown.dropdown.data-api touchstart.dropdown.data-api", t + ", [role=menu]", n.prototype.keydown) }) }(window.jQuery), ! function (e){ "use strict"; var t=function (t, n){ this.options=n, this.$element=e(t).delegate('[data-dismiss="modal"]', "click.dismiss.modal", e.proxy(this.hide, this)), this.options.remote&&this.$element.find(".modal-body").load(this.options.remote) }; t.prototype={ constructor: t, toggle: function (){ return this[this.isShown ? "hide":"show"]() }, show: function (){ var t=this, n=e.Event("show"); this.$element.trigger(n); if(this.isShown||n.isDefaultPrevented()) return; e("body").addClass("modal-open"), this.isShown = !0, this.escape(), this.backdrop(function (){ var n=e.support.transition&&t.$element.hasClass("fade"); t.$element.parent().length||t.$element.appendTo(document.body), t.$element.show(), n&&t.$element[0].offsetWidth, t.$element.addClass("in").attr("aria-hidden", !1).focus(), t.enforceFocus(), n ? t.$element.one(e.support.transition.end, function (){ t.$element.trigger("shown") }):t.$element.trigger("shown") }) }, hide: function (t){ t&&t.preventDefault(); var n=this; t=e.Event("hide"), this.$element.trigger(t); if(!this.isShown||t.isDefaultPrevented()) return; this.isShown = !1, e("body").removeClass("modal-open"), this.escape(), e(document).off("focusin.modal"), this.$element.removeClass("in").attr("aria-hidden", !0), e.support.transition&&this.$element.hasClass("fade") ? this.hideWithTransition():this.hideModal() }, enforceFocus: function (){ var t=this; e(document).on("focusin.modal", function (e){ t.$element[0]!==e.target&&!t.$element.has(e.target).length&&t.$element.focus() }) }, escape: function (){ var e=this; this.isShown&&this.options.keyboard ? this.$element.on("keyup.dismiss.modal", function (t){ t.which==27&&e.hide() }):this.isShown||this.$element.off("keyup.dismiss.modal") }, hideWithTransition: function (){ var t=this, n=setTimeout(function (){ t.$element.off(e.support.transition.end), t.hideModal() }, 500); this.$element.one(e.support.transition.end, function (){ clearTimeout(n), t.hideModal() }) }, hideModal: function (e){ this.$element.hide().trigger("hidden"), this.backdrop() }, removeBackdrop: function (){ this.$backdrop.remove(), this.$backdrop=null }, backdrop: function (t){ var n=this, r=this.$element.hasClass("fade") ? "fade":""; if(this.isShown&&this.options.backdrop){ var i=e.support.transition&&r; this.$backdrop=e('